package com.ternnetwork.core.service;

import java.util.List;

import com.ternnetwork.persistence.page.Page;
import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.core.entity.Role;





public interface RoleService {
	 BaseResponse idoAdd(Role t);

	 BaseResponse idoUpdate(Role t);

	 List<Role> findAll(String jpql, Object... param);

	 Role findById(long id);

	 Role getReferenceById(long id);

	 Long getTotalCount(String countJpql, Object... param);
	
	 String query(Page page);
	
	 List<Role> findAllByCategory(String category);
	
	 Role findByCode(String code );

	 BaseResponse idoDelete(long id);
	
}
